package gaspider;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * 实现Job接口，定义具体运行的任务
 */
public class HelloJob implements Job{

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //此处执行的任务就是打印出当前的时间
        System.out.println("Hello World! - " + new Date());
    }
}